Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add gaze.transforms.smooth() #555

Merged
merged 26 commits into from
Sep 29, 2023
Merged

Conversation

jakobchwastek
Copy link
Member

@jakobchwastek jakobchwastek commented Sep 14, 2023

Description

Fixes issue #301

Implemented changes

Implementation of transforms.smooth function for smoothing data. The following methods have been
implemented

  • Moving Average
  • Exponential Moving Average
  • Savitzky Golay

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Tested smoothing methods by applying them to a simple 2D array with values [[0., 0.], [1., 1.], [0., 0.]].

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@jakobchwastek jakobchwastek linked an issue Sep 14, 2023 that may be closed by this pull request
1 task
@dkrako dkrako changed the title Feature/add transforms smooth feat: Add gaze.transforms.smooth() Sep 14, 2023
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (c8ef04d) 100.00% compared to head (67bbbde) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #555   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           52        52           
  Lines         2258      2289   +31     
  Branches       559       570   +11     
=========================================
+ Hits          2258      2289   +31     
Files Coverage Δ
src/pymovements/gaze/gaze_dataframe.py 100.00% <100.00%> (ø)
src/pymovements/gaze/transforms.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/pymovements/gaze/transforms.py Outdated Show resolved Hide resolved
@jakobchwastek jakobchwastek marked this pull request as ready for review September 22, 2023 06:47
@jakobchwastek
Copy link
Member Author

Adding smooth as transformation method in GazeDataFrame is missing!

@jakobchwastek jakobchwastek marked this pull request as draft September 22, 2023 07:10
@jakobchwastek jakobchwastek marked this pull request as ready for review September 22, 2023 08:59
Copy link
Contributor

@dkrako dkrako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this great work!

@dkrako dkrako merged commit dc3a32d into main Sep 29, 2023
17 checks passed
@dkrako dkrako deleted the feature/add-transforms-smooth branch September 29, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add transforms.smooth()
3 participants